package com.zygh.policeasset.mapper;

import com.zygh.policeasset.pojo.ProjectNo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/mapper/ProjectNoMapper.class */
public interface ProjectNoMapper {
    @Select({"select * from project_no where type=#{type} and year=#{year} "})
    ProjectNo findByType(@Param("type") String str, @Param("year") String str2);

    @Update({"update project_no set counter=counter+1 where type=#{type} and year=#{year} "})
    Integer update(@Param("type") String str, @Param("year") String str2);

    @Insert({"insert into project_no (type,counter,year ) values (#{type},#{counter},#{year} )"})
    int add(ProjectNo projectNo);
}